package com.syh.companyservice.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author syh 86187
 * @date 2024/7/1
 * com.syh.bishe.pojo
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false) //Lombok插件生成equals和hashCode方法时不要调用父类的这两个方法
@Accessors(chain = true) //Lombok插件生成setter/getter方法时使用链式编程
@TableName("companies")
@Schema(description = "公司实体")
public class Companies {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private String address;
    @Schema(description = "公司邮箱")
    private String contactEmail;
    @Schema(description = "公司电话")
    private String contactPhone;
    private String createdAt;
    private String updatedAt;
}
